﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="AdminNews.aspx.cs" Inherits="EHTSaleManager.UIAdmin.AdminNews" %>

<%@ Register Src="~/UIAdmin/Control/PaggingControl.ascx" TagName="PaggingControl"
    TagPrefix="EHT" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1><asp:Label ID="lbAdminCustomer" runat="server" Text="News Manager"></asp:Label>
        
    </h1>
    
    <asp:Repeater ID="rpNews" runat="server">
        <HeaderTemplate>
            <table cellspacing="0" cellpadding="0" class="data-table">
                <thead>
                    <tr>
                       
                        <th class="actions edit">
                            Edit
                        </th>
                       
                        <th class="actions delete">
                            Slett
                        </th>
                        <th>
                           TitleNyheter
                        </th>
                        <th>
                            Innhold Nyheter
                        </th>
                        <th>
                            TypeNyheter
                        </th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
               
                <td class="actions edit">
                    <a href='AdminAddnews.aspx?NewsID=<%#Eval("NewsID")%>'>
                        <img alt="Edit" src="../Styles/Edit.png"></a>
                </td>
              
                <td class="actions delete">
                    <a href='AdminNewsComfirmDelete.aspx?NewsID=<%#Eval("NewsID")%>'>
                        <img alt="Delete" src="/Styles/Delete.png"></a>
                </td>                
                <td>
                    <%#Eval("TitleNews")%>
                </td>
                <td>
                    <%#Eval("ContentNews")%>
                </td>
                <td>
                    <%#Eval("TypeNews")%>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table>
        </FooterTemplate>
    </asp:Repeater>
     <p>
        <eht:paggingcontrol id="PaggingControl1" runat="server" pageurl="AdminNews.aspx"
            pagesize="10" />
    </p>
    
    <p class="submitButton">
        <asp:Button ID="btnAddNews" runat="server" Text="Legg Nyheter" 
            onclick="btnAddNews_Click" style="height: 26px" />
    </p>
    
</asp:Content>
